'    Copyright 2008 Jan Molnar <jan.molnar@abds.de>
'
'    This file is part of JCQ.

'    JCQ is free software: you can redistribute it and/or modify
'    it under the terms of the GNU General Public License as published by
'    the Free Software Foundation, either version 2 of the License, or
'    (at your option) any later version.

'    JCQ is distributed in the hope that it will be useful,
'    but WITHOUT ANY WARRANTY; without even the implied warranty of
'    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'    GNU General Public License for more details.

'    You should have received a copy of the GNU General Public License
'    along with JCQ. If not, see <http://www.gnu.org/licenses/>.

Imports System.Xml

''' <summary>
''' Provides Serialization functionality for a reference type.
''' </summary>
Public Interface IReferenceFormatter
    ReadOnly Property ReferenceType() As Type

    ''' <summary>
    ''' Serializes a specified object graph to a specified XmlWriter.
    ''' </summary>
    Sub Serialize(ByVal graph As Object, ByVal writer As System.Xml.XmlWriter)

    ''' <summary>
    ''' Deserializes an object of a specified type from a specified XmlReader.
    ''' </summary>
    Function Deserialize(ByVal reader As XmlReader) As Object
End Interface